package e.odbo.data.util;

import e.odbo.data.bean.key.KeyBuilder;
import e.odbo.data.dao.I_ParentNode;
import e.odbo.data.bean.IKeyed;

public class DAOUtils {
    public static I_ParentNode getParentNode(final Class parentClass, final String id) {
        return new I_ParentNode() {

            @Override
            public IKeyed getParentKey() {
                return KeyBuilder.getKey(id);
            }

            @Override
            public Class getParentClass() {
                return parentClass;
            }
        };
    }

}
